package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.InventoryPrice;
import cn.stylefeng.guns.sys.modular.system.model.params.InventoryPriceParam;
import cn.stylefeng.guns.sys.modular.system.model.result.InventoryPriceResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2020-09-15
 */
public interface InventoryPriceService extends IService<InventoryPrice> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    void add(InventoryPriceParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    void delete(InventoryPriceParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    ResponseData update(InventoryPriceParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    InventoryPriceResult findBySpec(InventoryPriceParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    List<InventoryPriceResult> findListBySpec(InventoryPriceParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-09-15
     */
     LayuiPageInfo findPageBySpec(InventoryPriceParam param);

    InventoryPrice selectOneById(Long id);

    ResponseData addOne(InventoryPriceParam inventoryPriceParam);

}
